@if(empty($records))
    <div class="list-empty">
        <div class="list-empty-body">
            <h2>暂无内容</h2>
            <p>暂无内容</p>
        </div>
    </div>
@else
    @foreach($records as $r)
        <div class="item">
            <div class="item-left">
                <div class="thumbnail">
                    <a href="{{$r['_url']}}"><img
                            src="{{$r['_cover']}}"
                            alt="{{$r['title']}}"></a>
                </div>
            </div>
            <div class="item-right">
                <div class="title">
                    <h3>
                        @if($r['isTop'])
                            <span class="treetop bg-01">置顶</span>
                        @endif
                        @if($r['isHot'])
                            <span class="treetop bg-02">热门</span>
                        @endif
                        @if($r['isRecommend'])
                                <span class="treetop bg-03">推荐</span>
                        @endif
                        <a href="{{$r['_url']}}">{{$r['title']}}</a>
                    </h3>
                </div>
                <div class="data">
                    <span><i></i>{{$r['_date']}}</span>
                    <span><i></i>{{$r['clickCount']}}</span>
                    <span><i></i>{{$r['commentCount']}}</span>
                </div>
                <div class="desc"><p>{{$r['_summary']}}</p></div>
                <div class="tag">
                    @foreach($r['tag'] as $t)
                        <a href="{{\Module\Blog\Util\UrlUtil::tag($t)}}" title="{{$t}}">{{$t}}</a>
                    @endforeach
                </div>
            </div>
            <div class="links"><a href="{{$r['_url']}}"><i></i>查看详情</a></div>
        </div>
    @endforeach
@endif
